package com.wx.cloud.security.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.GrantedAuthority;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Permission  implements GrantedAuthority {
    private Integer id;
    private Integer jurisdictionCode;
    private String value;
    private String jurisdictionName;
    private Integer status;
    private Integer pageSize;
    private Integer pageNum;
    private String authority;
    private String uri;
    private Integer total;

    @Override
    public String getAuthority() {
        return this.value;
    }
}
//    @Override
//    public String getAuthority() {
//        return this.value;
//    }
//}

